package cn.geckos.fml.data
{
	import cn.geckos.fml.Type;
	import mx.controls.Text;
	
	public class TextData implements IData
	{
		private var _text:String;
		private var _id:String;
		
		
		public function TextData()
		{
			
		}
		
		public function set id(id:String):void
		{
			this._id = id;
		}
		
		public function get id():String
		{
			return this._id;
		}
		
		public function set text(text:String):void
		{
			this._text = text;
		}
		
		public function get text():String
		{
			return this._text;
		}
		
		public function get type():String
		{
			return Type.TEXT
		}
		
		public function equals(o:Object):Boolean
		{
			if(o == this)
			{
				return true;
			}else
			{
				if(o is TextData)
				{
					var t:TextData = o as TextData;
					if(t.id == this._id && t.text == this._text)
					{
						return true;
					}else
					{
						return false;
					}
				}else return false;
			}
		}
		
	}
}